﻿@inherits Blazorise.DropdownToggle
@if ( ParentDropdown?.IsDropdownSubmenu == true )
{
    <a @ref="@ElementRef" id="@ElementId" class="@ClassNames" style="@StyleNames" data-boundary="@DataBoundary" disabled="@IsDisabled" tabindex="@TabIndex" @onclick="@ClickHandler" href="javascript:void(0)" @attributes="@Attributes">
        @ChildContent
    </a>
}
else
{
    <button @ref="@ElementRef" id="@ElementId" type="button" class="@ClassNames" style="@StyleNames" data-boundary="@DataBoundary" disabled="@IsDisabled" tabindex="@TabIndex" @onclick="@ClickHandler" @attributes="@Attributes">
        @ChildContent
    </button>
}